//
//  ApiParameter.swift
//  Inquiry
//
//  Created by SSD on 2019/9/10.
//  Copyright © 2019 SSD. All rights reserved.
//

import Foundation
typealias ParameterDictionary = [ApiParameter : Any]
enum ApiParameter:String {
    case version = "version"
}
extension Dictionary where Key == ApiParameter, Value == Any {
    func toStandardDictionary() -> [String:Any] {
        var result = [String:Any] ()
        for (key, value) in self {
            result[key.rawValue] = value
        }
        return result
    }
}
